package com.ruoyi;

import com.ruoyi.patrol.quartzTask.LineTask;
import com.ruoyi.patrol.quartzTask.MonitorTask;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import java.lang.management.MonitorInfo;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@ComponentScan({"com.ruoyi.*"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RuoYiApplication {
    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        ConfigurableApplicationContext context = SpringApplication.run(RuoYiApplication.class, args);
        LineTask.setContext(context);
        MonitorTask.setContext(context);
        System.out.println("(♥◠‿◠)ﾉﾞ  项目启动成功   ლ(´ڡ`ლ)ﾞ  \n"
+
                "  -=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-\n" +
                "               __        __        __        __\n" +
                " .*.         /~ .~\\    /~  ~\\    /~ .~\\    /~  ~\\\n" +
                " ***        '      `\\/'      *  '      `\\/'      *\n" +
                "  V        (                .*)(               . *)\n" +
                "/\\|/\\       \\            . *./  \\            . *./\n" +
                "  |          `\\ .      . .*/'    `\\ .      . .*/'     .*.\n" +
                "  |            `\\ * .*. */' _    _ `\\ * .*. */'       ***\n" +
                "                 `\\ * */'  ( `\\/'*)  `\\ * */'        /\\V\n" +
                "                   `\\/'     \\   */'    `\\/'            |/\\\n" +
                "                             `\\/'                      |\n" +
                "--+++==##<<{{      拒绝欺凌，守护校园每一刻      }}>>##==++--");

    }
}
